<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInLeft">
    <input type="hidden" th:value="${type}" id="integralType">
    <th:block th:if="${type}=='rule'">
        <div data-th-replace="common/functionDepict"></div>
    </th:block>
    <th:block th:if="${type}=='config'">
        <div>
            <h4>
                <ol class="breadcrumb">
                    <li>
                        <a class="Jump-box" data-type="1" href="javascript:void(0)" data-id="303">
                            <i class="fa fa-home"></i> <span>裂变营销</span>
                        </a>
                    </li>
                    <li>
                        <a data-type="2" href="javascript:void(0);" data-id="306" class="Jump-box">
                            <i class="fa fa-angle-double-left"></i>
                            <span>  营销中心</span>
                        </a>
                    </li>
                    <li>
                        <strong>积分配置</strong>
                    </li>
                </ol>
            </h4>
        </div>
    </th:block>
    <div>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <div class="tabs-container">
                            <div class="tab-content">
                                <th:block th:if="${type}=='rule'">
                                    <div id="tab-1" class="tab-pane active">
                                        <div>
                                            <section class="clearfix">
                                                <aside class="pull-left">
                                                    <span class="fs14 c-000 vam">|</span>
                                                    <span class="fs16 c-000 vam ml5">平台积分概况</span>
                                                </aside>
                                            </section>
                                        </div>
                                        <div class="row in-iv-data-wrap in-iv-data-box m-l-lg m-t">
                                            <div class="iv-data-item">
                                                <div class="iv-data-item-bx iv-data-item-bx-1">
                                                    <div class="text-center">
                                                        <h2><span class="fs14">可用积分总数</span></h2>
                                                        <div class="iv-data-item-attr" data-toggle="tooltip" data-placement="top" data-original-title=""><span class="fs10" id="sumUserNum" th:text="${IntegralStatis.useScore}==null?0:${IntegralStatis.useScore}">0</span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="iv-data-item">
                                                <div class="iv-data-item-bx iv-data-item-bx-2">
                                                    <div class="text-center">
                                                        <h2>
                                                            <span class="fs14">保护期内积分</span>
                                                            <span class="fs14 c-ccc hand" data-container="body" data-html="true" data-toggle="popover" data-trigger="hover" data-placement="top" data-content="积分若在保护期内，学员将无法兑换使用" data-original-title="" title="">
                                                                    <i class="fa fa-exclamation-circle"></i>
                                                                </span>
                                                        </h2>
                                                        <div class="iv-data-item-attr" ><span   class="fs10" id="buyUserNum" th:text="${IntegralStatis.protectScore}==null?0:${IntegralStatis.protectScore}">0</span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="iv-data-item">
                                                <a href="javascript:void(0);" onclick="getRedirectMenu('/admin/user/cus/toIntegralRecord?recordType=2',false)">
                                                    <div class="iv-data-item-bx iv-data-item-bx-3">
                                                        <div class="text-center">
                                                            <h2><span class="fs14">累计发放积分数</span></h2>
                                                            <div class="iv-data-item-attr" data-toggle="tooltip" data-placement="top" data-original-title="">
                                                                <span class="fs10" th:text="${IntegralStatis.totalScore}==null?0:${IntegralStatis.totalScore}" id="sumCourseNum">0</span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </a>
                                            </div>

                                            <div class="iv-data-item">
                                                <a href="javascript:void(0);" onclick="getRedirectMenu('/admin/user/cus/toIntegralRecord?recordType=1',false)">
                                                    <div class="iv-data-item-bx iv-data-item-bx-5">
                                                        <div class="text-center">
                                                            <h2><span class="fs14">消耗积分总数</span></h2>
                                                            <div class="iv-data-item-attr" data-toggle="tooltip" data-placement="top" data-original-title="">
                                                                <span class="fs10" id="sumQuestionNum" th:text="${IntegralStatis.consumeScore}==null?0:${IntegralStatis.consumeScore}">0</span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </a>
                                            </div>
                                            <div class="iv-data-item">
                                                <a href="javascript:void(0);" onclick="getRedirectMenu('/admin/user/cus/toIntegralRecord?recordType=1',false)">
                                                    <div class="iv-data-item-bx iv-data-item-bx-5">
                                                        <div class="text-center">
                                                            <h2><span class="fs14">兑换现金总额（元）</span></h2>
                                                            <div class="iv-data-item-attr" data-toggle="tooltip" data-placement="top" data-original-title="">
                                                                <span class="fs10" id="changeAmount" th:text="${IntegralStatis.changeAmount}==null?0:${IntegralStatis.changeAmount}">0</span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </a>
                                            </div>
                                            <div class="iv-data-item">
                                                <a href="javascript:void(0);" onclick="getRedirectMenu('/admin/user/cus/toIntegralRecord?recordType=1',false)">
                                                    <div class="iv-data-item-bx iv-data-item-bx-5">
                                                        <div class="text-center">
                                                            <h2><span class="fs14">兑换商品总量（个）</span></h2>
                                                            <div class="iv-data-item-attr" data-toggle="tooltip" data-placement="top" data-original-title="">
                                                                <span class="fs10" id="exchangeNum" th:text="${IntegralStatis.exchangeNum}==null?0:${IntegralStatis.exchangeNum}">0</span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </a>
                                            </div>
                                            <div class="iv-data-item">
                                                <a href="javascript:void(0);" onclick="getRedirectMenu('/admin/user/cus/toIntegralRecord',false)">
                                                    <div class="iv-data-item-bx iv-data-item-bx-6">
                                                        <div class="text-center">
                                                            <h2>
                                                                <span class="fs14">积分明细</span>
                                                            </h2>
                                                            <div class="iv-data-item-attr" data-toggle="tooltip" data-placement="top" data-original-title="">
                                                            <span class="fs10" >
                                                                <i class="fa fa-arrow-right m-l-sm"></i>
                                                            </span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </a>
                                            </div>
                                        </div>
                                    </div>
                                    <hr>
                                    <div id="tab-2" class="tab-pane active">
                                        <div class="m-t-lg m-b-lg m-l">
                                            <div>
                                                <section class="clearfix">
                                                    <aside class="pull-left">
                                                        <span class="fs14 c-000 vam">|</span>
                                                        <span class="fs16 c-000 vam ml5">通用积分规则</span>
                                                    </aside>
                                                </section>
                                            </div>
                                            <div class="form-horizontal m-r-lg">
                                                <div class="form-group m-t">
                                                    <label class="col-sm-2 control-label">成功注册平台学员：</label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">

                                                            <p>
                                                                <th:block th:if="${integralRuleMap.REGISTER}!=null">
                                                                    成功注册为平台有效学员用户获取
                                                                    <span class="c-red fs16" th:text="${integralRuleMap.REGISTER.contextTreeMap.score}"></span>
                                                                    积分
                                                                </th:block>
                                                                <span class="pull-right">
                                                        <a class="m-l-lg" onclick="openUpdateProtect('成功注册积分设置','REGISTER',false)" >
                                                            设置
                                                        </a>
                                                    </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">登录平台系统：</label>
                                                    <div class="col-sm-8">
                                                        <div class="form-control-static">

                                                            <th:block th:if="${integralRuleMap.LOGIN} !=null">
                                                                <div th:each="object :${integralRuleMap.LOGIN.contextList}">
                                                                    <p>
                                                                        学员连续
                                                                        <span class="c-red fs16" th:text="${object.unit}"></span>天
                                                                        登录平台系统获取
                                                                        <span class="c-red fs16" th:text="${object.score}"></span>
                                                                        积分
                                                                    </p>
                                                                </div>
                                                            </th:block>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-2 control-label">
                                                    <span class="pull-right">
                                                        <a class="m-l-lg" onclick="openUpdateProtect('登录平台积分设置','LOGIN',true)">设置</a>
                                                    </span>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">成功支付：</label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">
                                                            <p>
                                                                <th:block th:if="${integralRuleMap.PAYSUCCESS}!=null">
                                                                    学员每成功支付 1 笔订单获取
                                                                    <span class="c-red fs16" th:text="${integralRuleMap.PAYSUCCESS.contextTreeMap.score}"></span>
                                                                    积分，无上限限制
                                                                </th:block>
                                                                <span class="pull-right">
                                                        <a class="m-l-lg" onclick="openUpdateProtect('成功支付积分设置','PAYSUCCESS',false)">
                                                            设置
                                                        </a>
                                                    </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">赠送积分：</label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">
                                                            <p>
                                                                <span>平台管理员给学员后台赠送积分</span>
                                                                <span class="pull-right">
                                                            <!--<a class="m-l-lg" >
                                                                &#45;&#45;
                                                            </a>-->
                                                        </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <hr>
                                        <div class="m-t-lg m-b-lg m-l">
                                            <div>
                                                <section class="clearfix">
                                                    <aside class="pull-left">
                                                        <span class="fs14 c-000 vam">|</span>
                                                        <span class="fs16 c-000 vam ml5">自主积分规则</span>
                                                    </aside>
                                                </section>
                                            </div>
                                            <div class="form-horizontal m-r-lg">
                                                <div class="form-group m-t">
                                                    <label class="col-sm-2 control-label">学员看课：</label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">
                                                            <p>
                                                                <th:block th:if="${integralRuleMap.COURSE}!=null">
                                                                    学员每观看完一节课获取
                                                                    <span class="c-red fs16" th:text="${integralRuleMap.COURSE.contextTreeMap.score}"></span>
                                                                    积分，（每节课至多可看三次，超过三次无积分奖励）
                                                                </th:block>
                                                                <span class="pull-right">
                                                        <a class="m-l-lg" onclick="openUpdateProtect('学员看课积分设置','COURSE',false)">
                                                            设置
                                                        </a>
                                                    </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">学员做题：</label>
                                                    <div class="col-sm-8">
                                                        <div class="form-control-static">
                                                            <th:block th:if="${integralRuleMap.EXERCISE} !=null">

                                                                <div th:each="object :${integralRuleMap.EXERCISE.contextList}">
                                                                    <p>学员做试卷(同一试卷不累加) 累计做题量达
                                                                        <span class="c-red fs16" th:text="${object.unit}"></span>道，获取
                                                                        <span class="c-red fs16" th:text="${object.score}"></span>
                                                                        积分，每天得分上限为
                                                                        <span class="c-red fs16" th:text="${object.max}"></span> 积分
                                                                    </p>
                                                                </div>

                                                            </th:block>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-2">
                                                        <span class="pull-right">
                                                            <a class="m-l-lg" onclick="openUpdateProtect('学员做题积分设置','EXERCISE',true)">
                                                                设置
                                                            </a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">学员提问：</label>
                                                    <div class="col-sm-8">
                                                        <div class="form-control-static">
                                                            <th:block th:if="${integralRuleMap.QUESTION} !=null">

                                                                <div th:each="object: ${integralRuleMap.QUESTION.contextList}">
                                                                    <p>学员成功提问专业问题累计达
                                                                        <span class="c-red fs16" th:text="${object.unit}"></span>个，获取
                                                                        <span class="c-red fs16" th:text="${object.score}"></span>
                                                                        积分,每天得分上限为
                                                                        <span class="c-red fs16" th:text="${object.max}"></span> 积分
                                                                    </p>
                                                                </div>

                                                            </th:block>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-2">
                                                        <span class="pull-right">
                                                            <a class="m-l-lg" onclick="openUpdateProtect('学员提问积分设置','QUESTION',true)">
                                                                设置
                                                            </a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">围观问题：</label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">
                                                            <p>
                                                                <th:block th:if="${integralRuleMap.ONLOOK} !=null">
                                                                    学员成功围观付费问题，获取
                                                                    <span class="c-red fs16" th:text="${integralRuleMap.ONLOOK.contextTreeMap.score}"></span>
                                                                    积分，每天得分上限为
                                                                    <span class="c-red fs16" th:text="${integralRuleMap.ONLOOK.contextTreeMap.max}"></span>
                                                                    积分
                                                                </th:block>
                                                                <span class="pull-right">
                                                        <a class="m-l-lg" onclick="openUpdateProtect('学员围观问题积分设置','ONLOOK',false)" >
                                                            设置
                                                        </a>
                                                    </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">回答问题 ：</label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">
                                                            <p>
                                                                <th:block th:if="${integralRuleMap.ANSWER} !=null">
                                                                    学员成功回答学员问题，获取
                                                                    <span class="c-red fs16" th:text="${integralRuleMap.ANSWER.contextTreeMap.score}"></span>
                                                                    积分，每天得分上限为
                                                                    <span class="c-red fs16" th:text="${integralRuleMap.ANSWER.contextTreeMap.max}"></span>
                                                                    积分
                                                                </th:block>
                                                                <span class="pull-right">
                                                        <a class="m-l-lg"  onclick="openUpdateProtect('学员回答问题积分设置','ANSWER',false)">
                                                            设置
                                                        </a>
                                                    </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">发表话题 ：</label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">
                                                            <p>
                                                                <th:block th:if="${integralRuleMap.TOPIC}!=null">
                                                                    学员成功围观付费问题，获取
                                                                    <span class="c-red fs16" th:text="${integralRuleMap.TOPIC.contextTreeMap.score}"></span>
                                                                    积分，每天得分上限为
                                                                    <span class="c-red fs16" th:text="${integralRuleMap.TOPIC.contextTreeMap.max}"></span>
                                                                    积分
                                                                </th:block>
                                                                <span class="pull-right">
                                                        <a class="m-l-lg" onclick="openUpdateProtect('学员发表话题积分设置','TOPIC',false)">设置</a>
                                                    </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">学员分享：</label>
                                                    <div class="col-sm-8">
                                                        <div class="form-control-static">
                                                            <div>
                                                                <th:block v-if="integralRuleMap.SHARE !=null">
                                                                    <p>
                                                                        学员通过海报分享时，获取
                                                                        <span class="c-red fs16" th:text="${integralRuleMap.SHARE.contextTreeMap.shareScore}"></span> 积分，每天得分上限为
                                                                        <span class="c-red fs16" th:text="${integralRuleMap.SHARE.contextTreeMap.max}"></span> 分
                                                                    </p>
                                                                    <p>
                                                                        学员通过海报分享并通过分享每成功引流 1 个时，获取
                                                                        <span class="c-red fs16" th:text="${integralRuleMap.SHARE.contextTreeMap.shareSuccess}"></span> 积分，无上限限制
                                                                    </p>
                                                                    <p>
                                                                        学员通过海报分享并通过分享每成功引流  1 个并成功消费时，获取
                                                                        <span class="c-red fs16" th:text="${integralRuleMap.SHARE.contextTreeMap.sharePay}"></span> 积分,无上限限制
                                                                    </p>
                                                                </th:block>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-2">
                                                    <span class="pull-right">
                                                        <a class="m-l-lg" onclick="openUpdateProtect('学员分享积分设置','SHARE',false)" >设置</a>
                                                    </span>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">签到成功：</label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">
                                                            <p>
                                                                <th:block th:if="${integralRuleMap.SHARE} !=null">
                                                                    学员进入签到并成功后，获取
                                                                    <span class="c-red fs16" onclick="" th:text="${integralRuleMap.SIGNIN.contextTreeMap.score}"></span>
                                                                    积分
                                                                </th:block>
                                                                <span class="pull-right">
                                                            <a class="m-l-lg" onclick="openUpdateProtect('学员签到成功积分设置','SIGNIN',false)" >
                                                                设置
                                                            </a>
                                                        </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </th:block>
                                <th:block th:if="${type}=='config'">
                                    <div id="tab-3" class="tab-pane active">
                                        <div class="m-t-lg m-b-lg m-l">
                                            <div>
                                                <section class="clearfix">
                                                    <aside class="pull-left">
                                                        <span class="fs14 c-000 vam">|</span>
                                                        <span class="fs16 c-000 vam ml5">积分相关配置</span>
                                                    </aside>
                                                </section>
                                            </div>
                                            <div class="form-horizontal m-r-lg">
                                                <div class="form-group m-t">
                                                    <label class="col-sm-2 control-label">积分有效期：</label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">
                                                            <p>
                                                                <th:block th:if="${integralRuleMap.VALIDTIME}!=null">
                                                        <span>
                                                            <span th:if="${integralRuleMap.VALIDTIME.contextTreeMap.type}==1">
                                                                永久有效
                                                            </span>
                                                            <span th:if="${integralRuleMap.VALIDTIME.contextTreeMap.type}==2">
                                                                每年
                                                                <span class="c-red fs16" th:text="${integralRuleMap.VALIDTIME.contextTreeMap.month}"></span> 月
                                                                <span class="c-red fs16" th:text="${integralRuleMap.VALIDTIME.contextTreeMap.day}"></span> 日
                                                                清空上一年的积分
                                                            </span>
                                                        </span>
                                                                </th:block>
                                                                <span class="pull-right">
                                                        <a class="m-l-lg" onclick="openUpdateProtect('积分有效期设置','VALIDTIME',false)">
                                                            设置
                                                        </a>
                                                    </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">
                                                        <span class="fs14 c-ccc hand" data-container="body" data-html="true" data-toggle="popover" data-trigger="hover" data-placement="top" data-content="选定规则下积分才有保护期" data-original-title="" title="">
                                                            <i class="fa fa-exclamation-circle"></i>
                                                        </span>
                                                        积分保护期：
                                                    </label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">
                                                            <p>
                                                        <span th:if="${integralRuleMap.PROTECT!=null}">
                                                        积分在发放后将进入
                                                        <span class="c-red fs16" th:text="${integralRuleMap.PROTECT.contextTreeMap.day}"></span>
                                                        天保护期，此期间不可使用
                                                        </span>
                                                                <span class="pull-right">
                                                        <a class="m-l-lg" onclick="openUpdateProtect('积分保护期设置','PROTECT',false)">
                                                            设置
                                                        </a>
                                                    </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">
                                                        <span class="fs14 c-ccc hand" data-container="body" data-html="true" data-toggle="popover" data-trigger="hover" data-placement="top" data-content="根据运营不同，展示给前端学员的名称，如：学币。最多不超过3个字" data-original-title="" title="">
                                                            <i class="fa fa-exclamation-circle"></i>
                                                        </span>
                                                        积分名称：
                                                    </label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">

                                                            <p>
                                                                <th:block th:if="${integralRuleMap.NAME }!=null">
                                                                    <span class="c-red fs16" th:text="${integralRuleMap.NAME.contextTreeMap.name}"></span>
                                                                </th:block>
                                                                <span class="pull-right">
                                                            <a class="m-l-lg" onclick="openUpdateProtect('积分名称设置','NAME',false)">
                                                                设置
                                                            </a>
                                                        </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">积分消费模式：</label>
                                                    <div class="col-sm-8">
                                                        <div class="form-control-static">

                                                            <th:block th:if="${integralRuleMap.RATIO} !=null">
                                                                <div>
                                                                    <p>
                                                                        <span th:if="${integralRuleMap.RATIO.contextTreeMap.isGoods}=='on'"><i class="fs16 fa fa-cube"></i> 积分兑换商品</span>
                                                                        <span th:if="${integralRuleMap.RATIO.contextTreeMap.isMoney}=='on'" class="m-l"><i class="fs16 fa fa-money"></i> 积分兑换现金</span>
                                                                    </p>
                                                                    <p th:if="${integralRuleMap.RATIO.contextTreeMap.isMoney}=='on'">
                                                                        积分兑换现金比例：
                                                                        <span class="c-red fs16"  th:text="${integralRuleMap.RATIO.contextTreeMap.integral}"></span> :
                                                                        <span class="c-red fs16"  th:text="${integralRuleMap.RATIO.contextTreeMap.money}"></span>
                                                                        <span class="m-l-lg" >
                                                                            (表示：<span class="c-red fs16" th:text="${integralRuleMap.RATIO.contextTreeMap.integral}"></span>
                                                                            积分可兑换
                                                                            <span class="c-red fs16" th:text="${integralRuleMap.RATIO.contextTreeMap.money}"></span>
                                                                            元人民币现金)
                                                                        </span>
                                                                    </p>
                                                                </div>
                                                            </th:block>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-2 control-label">
                                                    <span class="pull-right">
                                                        <a class="m-l-lg" onclick="openUpdateProtect('积分消费模式设置','RATIO',false)">设置</a>
                                                    </span>
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">积分兑换方式：</label>
                                                    <div class="col-sm-10">
                                                        <div class="form-control-static">

                                                            <p>
                                                                <th:block th:if="${integralRuleMap.CONVERT}!=null">
                                                                    <span class="fs16" th:text="${integralRuleMap.CONVERT.contextTreeMap.isAuto}==true?'系统自动兑换':'学员手动兑换'"></span>
                                                                </th:block>
                                                                <!--<span class="pull-right">
                                                                    <a class="m-l-lg" onclick="openUpdateProtect('积分兑换方式设置','CONVERT')">
                                                                        &#45;&#45;
                                                                    </a>
                                                                </span>-->
                                                            </p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <!--<div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">前端积分获取 奖励提示弹框：</label>
                                                    <div class="col-sm-8">
                                                        <div class="form-control-static">
                                                            <form id="alertFrom">
                                                                <div class="switch">
                                                                    <div class="onoffswitch">
                                                                        <input name="switch" type="checkbox" class="onoffswitch-checkbox alertExample" id="example1" th:checked="${integralRuleMap.ALERT.contextTreeMap.switch}">
                                                                        <label class="onoffswitch-label" for="example1">
                                                                            <span class="onoffswitch-inner"></span>
                                                                            <span class="onoffswitch-switch"></span>
                                                                        </label>
                                                                    </div>
                                                                    <span>
                                                                    <small class="fs12 c-999">（说明：ON=积分奖励提示弹框）</small>
                                                                </span>
                                                                </div>
                                                                <div class="file-box">
                                                                    <input type="hidden" id="alertImgSrc" name="src" th:value="${integralRuleMap.ALERT.contextTreeMap.src}">
                                                                    <img  class="media-object" id="alertImg" width="160" height="160" th:src="${integralRuleMap.ALERT.contextTreeMap.src}==''?${staticPath}+'/admin/v3/img/default/default-pic.jpg':${integralRuleMap.ALERT.contextTreeMap.src}">
                                                                </div>
                                                            </form>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-2">
                                                        <span  class="pull-right">
                                                            <a class="ml10"  id="alertImgBtn" >
                                                                设置
                                                            </a>
                                                        </span>
                                                    </div>
                                                </div>-->
                                                <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">邀请好友<br />赚积分推广图</label>
                                                    <div class="col-sm-8">
                                                        <div class="form-control-static">
                                                            <form id="inviteForm">
                                                                <div class="switch">
                                                                    <div class="onoffswitch">
                                                                        <input name="switch" type="checkbox" class="onoffswitch-checkbox" id="example2" th:checked="${integralRuleMap.INVITE.contextTreeMap.switch}">
                                                                        <label class="onoffswitch-label" for="example2">
                                                                            <span class="onoffswitch-inner"></span>
                                                                            <span class="onoffswitch-switch"></span>
                                                                        </label>
                                                                    </div>
                                                                    <span>
                                                                        <small class="fs12 c-999">（说明：ON=开启前台各端邀请好友赚积分推广图位）</small><br>
                                                                        <small class="fs12 c-999">（要求尺寸 690px*126px，格式为：jpg\jpeg\png格式，大小不超过2M）</small>
                                                                    </span>
                                                                    <span data-container="body"
                                                                       data-html="true"
                                                                       data-toggle="popover"
                                                                       data-trigger="hover"
                                                                       data-placement="top"
                                                                       th:attrappend="data-content='<img width=240 src='+${staticPath}+'/admin/v3/img/pic/integral-example-1.jpg />'">
                                                                        <span class="c-master">示例</span></span>
                                                                </div>

                                                                <div class="m-t">
                                                                    <input type="hidden" id="inviteImgSrc" name="src" th:value="${integralRuleMap.INVITE.contextTreeMap.src}" >
                                                                    <img  class="media-object" id="inviteImg" width="690" height="126" th:src="${integralRuleMap.INVITE.contextTreeMap.src}==''?${staticPath}+'/front/mobile/v3/img/uc/integral-ads-default-pic.png':${integralRuleMap.INVITE.contextTreeMap.src}">

                                                                    <div class="input-group m-t-lg m-r-lg">
                                                                        <input type="text" class="form-control" placeholder="请填写邀请好友海报分享标语" maxlength="10" name="title" th:value="${integralRuleMap.INVITE.contextTreeMap.title}">
                                                                        <span class="input-group-btn">
                                                                            <button type="button" class="btn btn-primary"  id="inviteBtn">保存</button>
                                                                        </span>
                                                                    </div>
                                                                </div>
                                                            </form>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-2">
                                                        <span  class="pull-right">
                                                            <a class="ml10" id="inviteImgBtn">
                                                                设置广告图
                                                            </a>
                                                        </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </th:block>
                                <!--<div>
                                    <form id="integralRuleForm">
                                        <input type="text" id="key" name="key">
                                        <input type="text" id="description" name="description">
                                        <input type="button" id="saveRule" value="提交">
                                    </form>
                                </div>-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div data-th-replace="layout/head-footer"></div>
<script th:src="@{{path}/admin/business/common/clipboard/clipboard.min.js?v={v}(path=${staticPath},v=${v})}"></script>
<script type="text/javascript"
        th:src="@{{path}/admin/business/upload/common-webuploader.js?v={v}(path=${staticPath},v=${v})}"></script>
<script type="text/javascript" th:src="@{{path}/common/summernote/summernote.min.js?v={v}(path=${staticPath},v=${v})}"></script>
<script type="text/javascript"
        th:src="@{{path}/admin/business/user/integral/integralruleConfig.js?v={v}(path=${staticPath},v=${v})}"></script>
</body>
</html>